<?php
class PComRegularButton extends BasePcom{

	var $label;
	var $onclick;

    function PComRegularButton($label="Button",$onclick="",$className = "") {
    	$this->label = $label;
    	$this->name = $this->name_from_label($label);
    	$this->onclick = $onclick;
	    $this -> className = $className;
    }

    function create() {
    	$out = '<input type="button" name="'.$this->name.'" value="'.$this->label.'" class="'.$this -> className.'" onclick="'.$this->onclick.'" />';
    	return $out;
    }
}
?>